/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BusinessLogic;

import EntityState.*;
import java.util.Date;
import java.util.List;
import javax.ejb.Remote;
 
/**
 *
 * @author James
 */
@Remote
public interface TCubeBeanLocal {
    public int checkAvailability(String username);
    public int registerAccount(String username, String password, String IC, String firstName, String lastName, String gender, String countryCode, String phone, String email, String country, String city, int accountLevel, int theRole);
    public int activateUser(String id);
    public TCubeAccountState login(String username, String password, String timezone);
    public boolean checkPrivilege(String username, int requiredPrivilege);
    public boolean checkAccountLevel(String username1, String username2);
    public List<TCubePrivilegeState> getFullListOfPrivileges();
    public boolean checkAccountLevel(String username, int requiredAccountLevel);
    public int registerPartner(String name, String bizAddress1, String bizAddress2, String bizPostalCode, String billingAddress1, String billingAddress2, String billingPostalCode, String countryCode, String phone, String country, String province, String city, String bizEmail, int sector, long motherCorpID, String managerUsername);
    public int createTCubePrivilege(String name, String description);
    public int grantTCubePrivilege(String username, int[] listOfPrivileges);
}
